package com.brainhealth.customer.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.brainhealth.common.annotation.Excel;
import com.brainhealth.common.core.domain.BaseEntity;

/**
 * 聊天主对象 chat_main
 * 
 * @author ruoyi
 * @date 2023-07-04
 */
public class ChatMain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 聊天主表主键 */
    private Long id;

    /** 关联会员ID */
    @Excel(name = "关联会员ID")
    private Long customerId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNo;

    /** 课程编号 */
    @Excel(name = "课程编号")
    private Long courseNo;

    /** 聊天状态(0初始化 1聊天中 2聊天结束） */
    @Excel(name = "聊天状态(0初始化 1聊天中 2聊天结束）")
    private Integer chatStatus;

    /** 聊天内容 */
    @Excel(name = "聊天内容")
    private String content;

    /** 最后一次聊天时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后一次聊天时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date leastChatTime;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String nextOrderNo;

    /** 训练开启时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "训练开启时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date nextOpenTime;

    /** 删除标志(0：未删除 1：已删除) */
    @Excel(name = "删除标志(0：未删除 1：已删除)")
    private Integer yn;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createUser;

    /** 更新者 */
    @Excel(name = "更新者")
    private String updateUser;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCustomerId(Long customerId) 
    {
        this.customerId = customerId;
    }

    public Long getCustomerId() 
    {
        return customerId;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setCourseNo(Long courseNo) 
    {
        this.courseNo = courseNo;
    }

    public Long getCourseNo() 
    {
        return courseNo;
    }
    public void setChatStatus(Integer chatStatus) 
    {
        this.chatStatus = chatStatus;
    }

    public Integer getChatStatus() 
    {
        return chatStatus;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setLeastChatTime(Date leastChatTime) 
    {
        this.leastChatTime = leastChatTime;
    }

    public Date getLeastChatTime() 
    {
        return leastChatTime;
    }
    public void setNextOrderNo(String nextOrderNo) 
    {
        this.nextOrderNo = nextOrderNo;
    }

    public String getNextOrderNo() 
    {
        return nextOrderNo;
    }
    public void setNextOpenTime(Date nextOpenTime) 
    {
        this.nextOpenTime = nextOpenTime;
    }

    public Date getNextOpenTime() 
    {
        return nextOpenTime;
    }
    public void setYn(Integer yn) 
    {
        this.yn = yn;
    }

    public Integer getYn() 
    {
        return yn;
    }
    public void setCreateUser(String createUser) 
    {
        this.createUser = createUser;
    }

    public String getCreateUser() 
    {
        return createUser;
    }
    public void setUpdateUser(String updateUser) 
    {
        this.updateUser = updateUser;
    }

    public String getUpdateUser() 
    {
        return updateUser;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("customerId", getCustomerId())
            .append("orderNo", getOrderNo())
            .append("courseNo", getCourseNo())
            .append("chatStatus", getChatStatus())
            .append("content", getContent())
            .append("leastChatTime", getLeastChatTime())
            .append("nextOrderNo", getNextOrderNo())
            .append("nextOpenTime", getNextOpenTime())
            .append("yn", getYn())
            .append("createUser", getCreateUser())
            .append("createTime", getCreateTime())
            .append("updateUser", getUpdateUser())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
